import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';
import {IndexComponent} from "./index/index.component";
import {HttpClientModule} from "@angular/common/http";
import {AwardService} from "./svrs/award.service";
import {RouterModule} from "@angular/router";
import { PrizeComponent } from './prize/prize.component';
import {AwardComponent} from "./award/award.component";
import { AaaComponent } from './aaa/aaa.component';
import { WeUiModule } from 'ngx-weui';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
let routes=[
  {path:"",component:AwardComponent},
  {path:"award/:awardId1",component:AaaComponent},
  // {path:"1",component:AaaComponent},
  // {path:"2",component:PrizeComponent},
  // {path:"award/:awardId/:prizeId",component:AaaComponent},
  {path:"award/:awardId2/:prizeId",component:PrizeComponent},
  {path:"award/:awardId1/:prizeId/aaa",component:IndexComponent}

];

@NgModule({
  declarations: [
    AppComponent,
    IndexComponent,
    PrizeComponent,
    AwardComponent,
    AaaComponent
  ],
  imports: [
    BrowserModule,HttpClientModule,RouterModule.forRoot(routes), WeUiModule.forRoot(), BrowserAnimationsModule
  ],
  providers: [AwardService],
  bootstrap: [AppComponent]
})
export class AppModule { }

